'use strict';

const Controller = require('egg').Controller;

class MinprogramController extends Controller {
  async index() {
    const { ctx } = this;
    ctx.body = '';
  }
  async maintainMsg() {
      const { ctx } = this;
      const res = await ctx.service.minprogram.maintainMsg();
      console.log(res);
      ctx.body = {
        code: 200,
        success: true,
        data: res
      };
  }
}

module.exports = MinprogramController;
